﻿<p>Explicit expression: @(RaiseHere())</p> @* Noncompliant, wrong location see https://sonarsource.atlassian.net/browse/NET-2052 *@
@*                                                ^^^^^^^^^ *@

<p>Implicit expression: @RaiseHere()</p> @* Noncompliant, wrong location see https://sonarsource.atlassian.net/browse/NET-2052 *@
@*                                               ^^^^^^^^^ *@

<p>Multi-statement block: @{ var result = RaiseHere(); }</p>
@*                                        ^^^^^^^^^ *@

<p>Control structures: @if(RaiseHere() == 42) { <text>42</text> }</p>
@*                         ^^^^^^^^^ *@

<p>Loops: @for(var i = 0; i < RaiseHere(); i++) { <text>@i</text> }</p>
@*                            ^^^^^^^^^ *@

<p>Code blocks: @{ RaiseHere(); }</p>
@*                 ^^^^^^^^^ *@

<p>Lambda expression: @((Func<int>)(() => RaiseHere()))()</p> @* Noncompliant, wrong location see https://sonarsource.atlassian.net/browse/NET-2052 *@
@*                                                                 ^^^^^^^^^ *@

<p>Nested multi-statement block: @{ var result2 = RaiseHere(); var result3 = RaiseHere(); }</p>
@*                                                ^^^^^^^^^ *@
@*                                                                           ^^^^^^^^^@-1 *@

<p>Nested control structures: @if(RaiseHere() == 42) { <text>@(RaiseHere() + 1)</text> }</p> @* wrong location see https://sonarsource.atlassian.net/browse/NET-2052 *@
@*                                ^^^^^^^^^ *@
@*                                                                                      ^^^^^^^^^@-1 *@

@code
{
    private static int RaiseHere() { return 42; }
}